import React from "react";
import {
    HashRouter,//路由管理者
    Switch,//排他路由
    Route//路由对象
} from "react-router-dom";


import Resign from "./list/Resign";
import Login from "./list/Login";
import Header from "./list/Header";

class Router extends React.Component{
    constructor(props){
        super(props);

    };

    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/resign" component={Resign}></Route>
                    <Route path="/login" component={Login}></Route>
                    <Route path="/" component={Header}></Route>
                </Switch>
            </HashRouter>
        )
    }
}

export default Router;